package com.xhw.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 加载首页
 */
@Controller
public class IndexController {
    @RequestMapping(value = "/")
    public String showIndex(){
        return "/pagehome/index";
    }
    @RequestMapping(value = "/register")
    public String showRegister(){
        return "/pagehome/register";
    }
    @RequestMapping(value = "/login")
    public String showLogin(){
        return "/pagehome/login";
    }

    @RequestMapping(value = "/shortrent")
    public String showShortrent(){
        return "/shortRent/shortrent";
    }
    @RequestMapping("/loginSuccess")
    public String loginSuccess(){return "pagehome/loginsuccess";}
}
